<div id="body">
	  <div id="resource">
		<?php
			foreach($resource->result() as $row) {
				echo '<p >';
				echo '<p style="font-size:13px;"><span class="blabel">Submitted by:</span> '.$row->Username.' on <span class="reminder">'.$row->TimeOfSubmission.'</span></p><p style="font-size:13px;"><span class="blabel">Type:</span> '.$row->Type.'</p><p style="font-size:13px;"><span class="blabel">Title:</span> '.$row->Title.'</p><p style="font-size:13px;"><span class="blabel">Author:</span> '.$row->Author.'</p><p style="font-size:13px;"><span class="blabel">Location:</span> ';
	if($row->Type == "link" || $row->Type == "Link") {
		echo anchor_popup((prep_url($row->Location)));
	} else {
		echo $row->Location;
	}
				echo '</p>';

				if($row->Type == 'File') {
					echo form_open('user_control/download',array(), array('UploadIDNo'=>$row->UploadIDNo));
					echo '<input type="submit" value="Download File">';
				}
			}
		?>
	  </div>
<div class="clear"> </div>
